def f(cmd):
    print cmd

def can(do, *args):
    do(*args)

cmd = "hello"
do = f
can(do, cmd)